CXX=g++
CXXFLAGS=-std=c++14 -O2 -Wall -g

TARGET:=bin/myserver
SOURCE:=$(wildcard ../*.cpp)
OBJS=./src/buffer.cpp ./src/timer.cpp ./src/epoller.cpp ./src/webserver.cpp \
	./src/httprequest.cpp ./src/httpresponse.cpp ./src/httpconnect.cpp \
	./src/log/log.cpp  ./src/db/database.cpp ./src/model/usermodel.cpp ./src/sqlpool.cpp  ./main.cpp

$(TARGET):$(OBJS)
	$(CXX) $(CXXFLAGS)  $(OBJS) -o ./$(TARGET) -pthread -l mysqlclient

